package com;

import com.service.RedisService;
import com.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ApplicationLog implements CommandLineRunner {
    public static void main(String[] args) {
        SpringApplication.run(ApplicationLog.class,args);
    }

@Autowired
private UserServiceImpl service;
    @Autowired
    private RedisService redisService;

    @Override
    public void run(String... args) throws Exception {
       service.doSth();
       redisService.doTh();
       redisService.getdo();
    }
}
